package com.alumni_circle.core.service.rbac.impl;

import com.alumni_circle.core.entity.rbac.RoleAuthority;
import com.alumni_circle.core.entity.rbac.VO.RoleAuthorityViewVO;
import com.alumni_circle.core.mapper.rbac.RoleAuthorityMapper;
import com.alumni_circle.core.service.Impl.BaseServiceImpl;
import com.alumni_circle.core.service.rbac.IRoleAuthorityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙小虬
 * @since 2020-08-02 20:36
 */
@Service
public class RoleAuthorityServiceImpl extends BaseServiceImpl<RoleAuthorityMapper, RoleAuthority> implements IRoleAuthorityService {

    @Resource
    RoleAuthorityMapper roleAuthorityMapper;

    @Override
    public List<RoleAuthorityViewVO> getAllRoleAuthority() {
        return roleAuthorityMapper.getAllRoleAuthority();
    }

    @Override
    public List<RoleAuthorityViewVO> searchRoleAuthority(String id, String url, String role, String state) {
        return roleAuthorityMapper.searchRoleAuthority(id,url,role,state);
    }
}
